﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<string>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="p1" runat="server">
   
    <% Html.BeginForm(); %>
    <div id="addUrl">
            <span><input type="text" name="longUrl" value="<%= String.IsNullOrEmpty(Model)? "http://" : Html.AttributeEncode(Model) %>" class="toggleval" /></span>
        <div class="button">
            <input type="submit" value="Shorten it" />
        </div>
    </div>
    <div id="txtOnly"><label><input type="checkbox" name="format" value="TXT" />Just give me a plain 'text only' result</label></div>
    <% Html.EndForm(); %>
    <%= Html.ValidationSummary() %>
</asp:Content>
